import request from '@/utils/request'

// 查询操作管理状态列表
export function listOperationStatus(query) {
  return request({
    url: '/quartz/operation/getStatus',
    method: 'get',
  })
}

// 修改用户
export function updateOperationStatus(data) {
  return request({
    url: '/quartz/operation/editStatus',
    method: 'put',
    data: data
  })
}

//启动
export function operationStart(data) {
  return request({
    url: '/quartz/operation/start',
    method: 'post',
    data: data
  })
}

//重启
export function operationReStart(workId) {
  return request({
    url: '/quartz/operation/reStart/' + workId,
    method: 'post',
  })
}

//获取工作单
export function listOperationWork(query) {
  return request({
    url: '/assembly/work/list',
    method: 'get',
    params: query
  })
}

//获取玻璃信息
export function listOperationGlass(query) {
  return request({
    url: '/assembly/glass/getGlassInfo',
    method: 'get',
    params: query
  })
}

//获取玻璃信息
export function listPdaCodeInfo(query) {
  return request({
    url: '/quartz/operation/code/info',
    method: 'get',
    params: query
  })
}

//获取进炉图数据
export function mark(query) {
  return request({
    url: '/quartz/operation/furnace/mark',
    method: 'get',
    params: query
  })
}

//获取排炉图数据
export function temperMark(query) {
  return request({
    url: '/quartz/operation/furnace/temperMark',
    method: 'get',
    params: query
  })
}